package com.wjs.queue;

import java.util.concurrent.ArrayBlockingQueue;

public class BlockQueueDemo {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<Object> queue = new ArrayBlockingQueue<>(3);
//        System.out.println(queue.add("a"));
//        System.out.println(queue.add("b"));
//        System.out.println(queue.add("c"));
//        System.out.println(queue.add("d"));
       queue.put("a");
       queue.put("a");
       queue.put("a");
       queue.put("a");
    }
}
